//
//  UIButton+EPM.m
//  WeiBoByOC
//
//  Created by 马继鵬 on 17/3/20.
//  Copyright © 2017年 7TH. All rights reserved.
//

#import "UIButton+EPM.h"

@implementation UIButton (EPM)

    + (instancetype)EPM_title:(NSString *)title imageName:(NSString *)imageName backImage:(NSString *)backImage
    {
        
        UIButton* btn = [UIButton new];
        [btn setTitle:title forState:UIControlStateNormal];
        [btn setImage:[UIImage imageNamed:imageName] forState:UIControlStateNormal];
        [btn setBackgroundImage:[UIImage imageNamed:backImage] forState:UIControlStateNormal];
        [btn sizeToFit];
        return btn;
    }
    
@end
